<template>
	<view class="linebutton">
		<text class="copy themeTextColor"  @click="copyOrder(content)" >复制</text>
	</view>
</template>

<script>
	import h5Copy from './js_sdk/junyi-h5-copy/junyi-h5-copy/junyi-h5-copy.js'
	export default {
		name:"copy",
		data() {
			return {
				
			};
		},
		methods:{
			//复制订单编号按钮
			copyOrder(val){
				const result = h5Copy(val)
				       if (result === false) {
				        //  uni.showToast({
				        //    title:'不支持',
				        //  })
						this.$util.msg('不支持')
				       } else {
						this.$util.msg('复制成功')
				        //  uni.showToast({
				        //    title:'复制成功',
				        //    icon:'none'
				        //  })
				       }
			},
		},
		props:{
			content:{
				type: String,
				default: ''
			},
		},
	}
</script>

<style>
	.linebutton{
		padding: 0 30rpx; 
	}
	.copy{
		text-align: center;
		color: black;
		width: 70rpx;
		line-height: 40rpx;
		font-size: 23rpx;
		padding: 4rpx 10rpx;
		border-radius: 15rpx;
		background-color:#F1FBF9;
		color: #00B48D;
		
	}
</style>
